<?php

App::uses('CrudController', 'Controller');

class ReportsController extends AppController
{

    public function beforeFilter()
    {
        $this->Security->validatePost = false;
        $this->Security->csrfCheck = false;
        parent::beforeFilter();
    }

    public function certifications()
    {
        $userId = $this->Auth->user('id');
        $this->loadModel('UserArea');
        $appBosch = new stdClass();
        $appBosch->data = $this->UserArea->getAsociates($userId);
        $this->set('title', __('Reporte de certificaciones'));
        $this->set('appBosch', $appBosch);
    }

    public function evc()
    {
        $userId = $this->Auth->user('id');
        $this->loadModel('UserArea');
        $appBosch = new stdClass();
        $appBosch->data = $this->UserArea->getAsociatesWithDetails($userId);
        $this->set('title', __('Reporte de detalles de la certificación por asociado'));
        $this->set('appBosch', $appBosch);
    }


}
